package org.uu.mybatisplus.dao;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import org.uu.mybatisplus.enums.SexEnum;

@TableName(value = "t_user")
public class UserDao extends SuperAbstract{

    /**
     * 昵称
     */
    @TableField("nickname")
    private String nickName;

    /**
     * 真实姓名
     */
    @TableField(exist = false)
    private String realName;

    /**
     * 性别
     */
    @JSONField(serialzeFeatures= SerializerFeature.WriteEnumUsingToString)  // 局部配置
    @TableField(value = "sex")
    private SexEnum sex;

    @TableField(value = "password")
    private String password;

    @TableField(value = "id_card")
    private String idCard;

    @TableField(value = "mobile_phone")
    private String mobilePhone;

    @TableField(value = "address")
    private String address;

    @TableField(value = "email")
    private String email;

    @TableField(value = "bank_card")
    private String bankCard;


    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public SexEnum getSex() {
        return sex;
    }

    public void setSex(SexEnum sex) {
        this.sex = sex;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getBankCard() {
        return bankCard;
    }

    public void setBankCard(String bankCard) {
        this.bankCard = bankCard;
    }
}
